permutation of repeated items